import request from '@/utils/request'

export function getUploadToken(query) {
    return request({
      url: '/member/getUploadToken',
      method: 'get',
      params: query
    })
  }

// 意见列表
export function adviceList(query) {
  return request({
    url: '/system/advice/list',
    method: 'get',
    params: query
  })
}

// 意见详情
export function adviceDetail(id) {
  return request({
    url: `/system/advice/${id}`,
    method: 'get'
  })
}


// 处理意见
export function handleAdvice(data) {
  return request({
    url: '/system/advice',
    method: 'put',
    data: data
  })
}

// 门店列表
export function storeList() {
  return request({
    url: '/system/dept/dropList',
    method: 'get'
  })
}


// 控制显示
export function handleShowData(data) {
  return request({
    url: '/system/advice/editShow',
    method: 'put',
    data: data
  })
}